//1、分页模糊匹配查询接口
function pageSelectApi(data) {
    return $.ajax({
        // http://localhost:8080
        url: "/song/pageSelect",
        method: 'POST',
        contentType: 'application/json;charset=UTF-8',
        dataType: 'json',
        // async:false,
        data: JSON.stringify(data)
    })
}

//3、添加的请求发送
function addSongApi(data) {
    return $.ajax({
        // http://localhost:8080/
        url: "/song/addSong",
        method: 'POST',
        contentType: 'application/json;charset=UTF-8',
        dataType: 'json',
        data: JSON.stringify(data)
    });
}

//4、修改操作
function updateSongApi(data) {
    return $.ajax({
        // http://localhost:8080
        url: "/song/updateSong",
        method: 'POST',
        contentType: 'application/json;charset=UTF-8',
        dataType: 'json',
        data: JSON.stringify(data)
    });
}

//7,根据id删除用户
function deleteSong(data) {
    return $.ajax({
        // http://localhost:8080
        url: "/song/deleteSong/" + data,
        method: 'get',
    })
}

